package com.yifang.yibingproject.utils;

import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.AllArgsConstructor;
import lombok.Data;

@ApiModel(description = "结果封装类")
@Data
@AllArgsConstructor
public class Result<T> {
    @ApiModelProperty(value = "返回码", required = true)
    private int code;

    @ApiModelProperty(value = "消息", required = true)
    private String msg;

    @ApiModelProperty("数据")
    private T data;
}
